//修饰符const的使用
# include<stdio.h>

int main (void)
{
	char const*p = "abc";
//	p = "abcd";//可以改变指针的指向
//	p[0]= "1";//不能改变内容
	printf("%s\n",p);

	char * const q = "abc";
	//q[2] = '1';
//	q = "abcdef";
	printf ("%s\n",q);
	int num = 100;
	int const * i = &num;
	//*i = 99;
	num = 1000;
	int num1 = 99;
	i = &num1;//不能改变指向
	printf("%d",*i);
	return 0;

}
